]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use GAppInfo list from ShellAppSystem
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Dec 2018 12:26:54 +0000 (13:26 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 26 Jan 2019 21:55:31 +0000 (22:55 +0100)
It is now cached there, so the number of g_app_info_get_all() calls
is reduced to one per change.

js/ui/appDisplay.js

index 3a7c7489757373a05d125f9d4dc40f751ab294f8..b8865cf2ccbc671b61fdee41b8a5d9ec31fb63ad 100644 (file)
@@ -492,7 +492,7 @@ var AllView = class AllView extends BaseAppView {
     }
 
     _loadApps() {
-        this._appInfoList = Gio.AppInfo.get_all().filter(appInfo => {
+        this._appInfoList = Shell.AppSystem.get_default().get_installed().filter(appInfo => {
             try {
                 let id = appInfo.get_id(); // catch invalid file encodings
             } catch(e) {